<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title><?=(isset($title) ? Html::chars($title) : '')?></title>
		<link rel="icon" href="favicon.ico" type="image/x-icon" />
		<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
		<meta name="keywords" content="<?=(isset($keywords) ? $keywords : '')?>" />
		<meta name="description" content="<?=(isset($description) ? $description : '')?>" />
		<meta name="robots" content="index, follow" />
		<?php
		if (isset($meta)) foreach ($meta as $i) {
				echo '<meta' . Html::attributes($i) . ' />'."\n";
			}
		?>
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
		<link href="/styles/style.css" rel="stylesheet" type="text/css" />
		<link href="/styles/west.css" rel="stylesheet" type="text/css" />
		<?php
		if (isset($link)) foreach ($link as $i) {
				echo '<link' . Html::attributes($i) . ' />'."\n";
			}
		?>
		<script type="text/javascript" src="/scripts/jquery/jquery.js"></script>
		<script type="text/javascript" src="/scripts/jquery/png-fix.js"></script>
		<script type="text/javascript">
</script>
		<script type="text/javascript">
			$(function() {
				$('body').supersleight();
				$.each($("img.item"), function(index, value) {
					$("<img />").attr("src", ($(this).attr("src").match(/[^\.]+/) + "Active.png"));
				});
				$("img.item").hover(function() {
					if(typeof document.body.style.maxHeight !== "undefined") {
						var src = $(this).attr("src").match(/[^\.]+/) + "Active.png";
						$(this).attr("src", src);
					}
				}, function() {
					if(typeof document.body.style.maxHeight !== "undefined") {
						var src = $(this).attr("src").replace("Active", "");
						$(this).attr("src", src);
					}
				});
			});
		</script>
		<?php
		/*
<script type="text/javascript" src="/scripts/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("/flash/preloader.swf", "flashcontent", "100%", "100%", "9.0.0");
</script>
		*/
		?>
		<?if (isset($scripts)) foreach ($scripts as $script) :?>
		<script type="text/javascript" src="<?=Url::site($script)?>"></script>
			<?endforeach?>
	</head>
	<body>
	<a name="top"></a>
		<table class="container">
			<tr>
				<td style="padding-top: 10px;">
					<a href="/"><img src="/images/logoSmall.png" width="191" height="191" /></a>
				</td>
				<td>
					<table class="menu">
						<tr>
							<td width="181" height="99" style="padding-right:0px; vertical-align:bottom;">
								<?php if(substr(Request::$controller, 1, 3) == 'hom'): ?>
								<a href="/home/">
									<img src="/images/menu/pgmenu/homeActive.png" width="104" height="34" alt="" style="float:right" />
								</a>
								<?php else: ?>
								<a href="/home/">
									<img src="/images/menu/pgmenu/home.png" width="104" height="34" alt="" style="float:right" class="item" />
								</a>
								<?php endif; ?>
							</td>
							<td width="113" style="padding-right:10px; vertical-align:bottom;">
								<?php if(substr(Request::$controller, 1, 3) == 'spa'): ?>
								<a href="/spaces/">
									<img src="/images/menu/pgmenu/spacesActive.png" width="95" height="58" alt="" style="float:right;" />
								</a>
								<? else: ?>
								<a href="/spaces/">
									<img src="/images/menu/pgmenu/spaces.png" width="95" height="58" alt="" style="float:right;" class="item" />
								</a>
								<? endif; ?>
							</td>
							<td width="110" style="vertical-align:bottom;">
								<?php if(substr(Request::$controller, 1, 3) == 'bus'): ?>
								<a href="/business/">
									<img src="/images/menu/pgmenu/businessActive.png" width="80" height="44" alt="" />
								</a>
								<? else: ?>
								<a href="/business/">
									<img src="/images/menu/pgmenu/business.png" width="80" height="44" alt="" class="item" />
								</a>
								<? endif; ?>
							</td>
							<td width="97" style="vertical-align:bottom; padding-left:10px;">
								<?php if(substr(Request::$controller, 1, 3) == 'eve'): ?>
								<a href="/events/">
									<img src="/images/menu/pgmenu/eventsActive.png" width="73" height="72" alt="" />
								</a>
								<? else: ?>
								<a href="/events/">
									<img src="/images/menu/pgmenu/events.png" width="73" height="72" alt="" class="item" />
								</a>
								<? endif; ?>
							</td>
							<td width="126" style="vertical-align:bottom; padding-left:6px;">
								<?php if(substr(Request::$controller, 1, 3) == 'mar'): ?>
								<a href="/marketing/">
									<img src="/images/menu/pgmenu/marketingActive.png" width="114" height="45" alt="" />
								</a>
								<? else: ?>
								<a href="/marketing/">
									<img src="/images/menu/pgmenu/marketing.png" width="114" height="45" alt="" class="item" />
								</a>
								<? endif; ?>
							</td>
							<td width="63">&nbsp;</td>
							<td width="137" style="padding-top:40px;">
								<?php if(substr(Request::$controller, 1, 3) == 'mem'): ?>
								<a href="/membership/">
									<img src="/images/menu/pgmenu/membershipActive.png" width="94" height="59" alt="" />
								</a>
								<? else: ?>
								<a href="/membership/">
									<img src="/images/menu/pgmenu/membership.png" width="94" height="59" alt="" class="item" />
								</a>
								<? endif; ?>
							</td>
						</tr>
						<tr>
							<td style="padding-top:6px; padding-right:10px; height: 100px;">
								<?php if(substr(Request::$controller, 1, 3) == 'inf'): ?>
								<a href="/information/">
									<img src="/images/menu/pgmenu/communityActive.png" width="102" height="59" alt="" style="float:right;" />
								</a>
								<? else: ?>
								<a href="/information/">
									<img src="/images/menu/pgmenu/community.png" width="102" height="59" alt="" style="float:right;" class="item" />
								</a>
								<? endif; ?>
							</td>
							<td>&nbsp;</td>
							<td style="padding-top:6px;">
								<?php if(substr(Request::$controller, 1, 3) === 'res'): ?>
								<a href="/resources/">
									<img src="/images/menu/pgmenu/resourcesActive.png" width="107" height="50" alt="" />
								</a>
								<? else: ?>
								<a href="/resources/">
									<img src="/images/menu/pgmenu/resources.png" width="107" height="50" alt="" class="item" />
								</a>
								<? endif; ?>
							</td>
							<td colspan="2" style="padding-top:6px; padding-right:120px;">
								<?php if(substr(Request::$controller, 1, 3) == 'cal'): ?>
								<a href="/calendar/">
									<img src="/images/menu/pgmenu/calendarActive.png" width="85" height="28" alt="" style="float:right;" />
								</a>
								<? else: ?>
								<a href="/calendar/">
									<img src="/images/menu/pgmenu/calendar.png" width="85" height="28" alt="" style="float:right;" class="item" />
								</a>
								<? endif; ?>
							</td>
							<td style="padding-left:2px; padding-top:6px;">
								<?php if(substr(Request::$controller, 1, 3) == 'abo'): ?>
								<a href="/about/">
									<img src="/images/menu/pgmenu/aboutActive.png" width="51" height="43" alt="" />
								</a>
								<? else: ?>
								<a href="/about/">
									<img src="/images/menu/pgmenu/about.png" width="51" height="43" alt="" class="item" />
								</a>
								<? endif; ?>
							</td>
							<td>&nbsp;</td>
						</tr>
					</table>
					<br />
					<div class="contentArea">
						<div class="contentBody">
							<?=$content?>
						</div>
					</div>
				</td>
			</tr>
		</table>
	  <div style="height: 0em;"></div>
		<div class="footer">
		  <div style="width:920px; margin: 0 auto; text-align: left;">
		  <table id="bottomLine" align="right">
		    <tr>
		      <td align="right" style="padding-right: 2px;">
<!--			<a href="http://webdesign.ukietech.com/">Web design in Chicago</a>-->
		      </td>
		      <td style="padding-right:30px;">
			<a href="http://www.ukietech.com">
			  <img src="/images/main/ukietechLogo.png" width="71" height="35" alt="Ukietech Chicago" align="right" />
			</a>
		      </td>
		    </tr>
		</table>
		  </div>
		  <br /><br />
		</div>

	  <script type="text/javascript">

	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-25086222-1']);
	  _gaq.push(['_trackPageview']);

	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();

	</script>
	</body>
</html>